package com.ywicc.commlibs.socket;

import android.content.Context;

import com.ywicc.commlibs.socket.WifiUtils;

/**
 * author : zhouxuan77
 * e-mail : zhouxuan77@163.com
 * time   : 2022/03/23
 * desc   :
 * version: 1.0
 */
public class CommUtils {

    public static String strSelfIP = "";
    public static String strGatewayIP = "";
    public static String strSubnetMask = "";
    public static String strClientIP = "";
    public static String strServerIP = "";
    public static int UDP_SEARCH_PORT = 9000;
    public static int SOCKET_COMM_PORT = 60000;

    private Context context;

    public CommUtils(Context context) {
        WifiUtils wifiUtils = new WifiUtils(context);

        strSelfIP = wifiUtils.getSelfIP();
        strGatewayIP = wifiUtils.getServerIP();
    }
}
